package com.javasm.service.B2cOrderService;

import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.common.page.PageResult;
import com.javasm.domin.criteria.orderCriteria.OrderCriteria;
import com.javasm.domin.criteria.orderCriteria.OrderProductCriteria;
import com.javasm.domin.entity.orderEntity.B2cOrder;
import com.javasm.domin.vo.orderVo.OrderAndReceiver;
import com.javasm.domin.vo.orderVo.OrderVo;
import com.javasm.domin.vo.orderVo.ProductVo;

import javax.servlet.http.HttpServletResponse;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lys
 * @since 2021-11-18
 */
public interface OrderService extends IService<B2cOrder> {
    /**
     * 查询所有订单
     * @return
     */
    List<OrderAndReceiver> findList();


    /**
     * 条件查询
     * @param orderCriteria
     * @return
     */
    PageResult<OrderAndReceiver> search(OrderCriteria orderCriteria);

    /**
     * 批量查询
     * @param idList
     * @return
     */
    List<OrderAndReceiver> findByIdList(List<Serializable> idList);

    /**
     * 更改订单状态
     * @param orderId
     * @return
     */
    Integer updateOrderStatus(Serializable orderId);

    /***
     * 根据订单id查询订单
     * @param id
     * @return
     */
    OrderAndReceiver findOrderInfo(Serializable id);




    void excelExport(HttpServletResponse response);

    List<B2cOrder> findIdList(List<Serializable> idList);
}
